﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MvcAtletIS.Models
{
    [MetadataType(typeof(DocumentsMetaData))]
    public partial class Documents
    {
    }

    public class DocumentsMetaData
    {
        [DisplayName("ID podkategórie")]
        public int SubcategoryId { get; set; }
        
        [DisplayName("Názov")]
        [Required(ErrorMessage = "Názov je povinný údaj.")]
        public string Title { get; set; }

        [DisplayName("Dátum")]
        [DataType(DataType.Date)]
        public DateTime Date { get; set; }

        [DisplayName("Mesto")]
        public string City { get; set; }

        [DisplayName("Autor")]
        public string Author { get; set; }

        [DisplayName("Cesta")]
        [Required(ErrorMessage = "Cesta je povinný údaj.")]
        public string Path { get; set; }

        [DisplayName("Aktívna")]
        [DefaultValue(true)]
        public bool Active { get; set; }
    }
}